﻿#include "CmdSetHeatMapFixedValueChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapFixedValueChanged::CmdSetHeatMapFixedValueChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapFixedValueChanged::~CmdSetHeatMapFixedValueChanged()
    {
    }

    bool CmdSetHeatMapFixedValueChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapFixedValueChanged(m_windowId, m_indexList);
        return true;
    }

    void CmdSetHeatMapFixedValueChanged::undo()
    {
    }

    void CmdSetHeatMapFixedValueChanged::redo()
    {
        // execute();
    }

    void CmdSetHeatMapFixedValueChanged::setHeatMapFixedValueChanged(int windowId, QList<int> indexList)
    {
        m_windowId = windowId;
        m_indexList = indexList;
    }

} // namespace PostCommand
